var pos : Transform;
var bulletPrefab : Rigidbody;
var imageTarget : Transform;
var speed = 100;
var cam : Camera;
var disapearTime = 3;

function Shoot () {
	var bullet : Rigidbody = Instantiate(bulletPrefab, pos.position, pos.rotation);
	bullet.transform.parent = imageTarget;
	bullet.velocity = cam.transform.forward * speed;
	Destroy(bullet.gameObject, disapearTime);
}